package com.st.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.st.entity.City;
import com.st.mapper.ICityMapper;
import com.st.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl extends ServiceImpl<ICityMapper, City> implements ICityService {
    @Autowired
    private ICityMapper iCityMapper;

    @Override
    public List<City> findCityByPId(String provinceid) {
        QueryWrapper<City> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("provinceid",provinceid);
        return iCityMapper.selectList(queryWrapper);
    }
}
